package com.lhn;

import com.lhn.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author lhn
 * @date 2024-08-17 13:14
 */

public class AppForDISet {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("application.xml");
        BookService bookService = (BookService) ctx.getBean("bookService");
        bookService.save();
    }
}

/**
 控制台输出
 book service save ...
 book dao save ...connectionNum is 100 databaseName is jdbc:mysql://localhost:3306/test
*/
